package com.sl.hx.shop.http;

/**
 * 网络请求的入口
 *
 * Created by hwg on 2017/12/20.
 */

public class ApiFactory {

    private static IApi iApi = null ;

    //单例模式，全局唯一
    public static IApi getInstance(){
        synchronized (ApiFactory.class){
            if (iApi == null){
                iApi = new ApiRetrofit().getiApi() ;
            }
            return iApi ;
        }
    }

}
